import React  from 'react'; //es6语法

class Welcome extends React.Component {
    render(){
        const todoList = ['learn React' ,'123','learn redux']
        const test = <h1>hello 
            <span>8888</span>
        </h1>
        console.log(test)
        console.log(todoList)
        return (
            <div>
                <h1 className="name" htmlFor="boy">hello React</h1>
                {'viking'}
                <hr/>
                {12 + 24 +999}
                <hr/>
                {[1,2,3,4]}

                <ul>
                    {
                        todoList.map(item=>
                            <li>{item}</li>
                            )
                    }
                </ul>
            </div>
        )
    }
}

export default Welcome